package com.vhall.component.controller.record.facade;

import com.vhall.component.entity.record.RecordEntityDTO;
import com.vhall.component.entity.record.vo.RecordChapterListRequestVO;
import com.vhall.component.entity.record.vo.RecordChapterListResponseVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author guoxin.wang
 * @date 2021/6/8 20:00
 */
@FeignClient(value = "RecordFacade", path = "/v4/record-for-other")
public interface RecordFacade {

    /**
     * 插入数据
     *
     * @param recordEntity 参数
     */
    @PostMapping("/insert")
    void insert(@Validated RecordEntityDTO recordEntity);

    /**
     * 根据主键修改数据
     *
     * @param recordEntity revordentity
     */
    @PostMapping("/updateById")
    void updateById(@Validated RecordEntityDTO recordEntity);

    /**
     * 根据voidid查询数据
     *
     * @param vodId vodId
     * @return 返回音视频数据
     */
    @PostMapping("/findByVodId")
    RecordEntityDTO findByVodId(@RequestParam("vodId") String vodId);
    /**
     * 章节打点列表
     */
    @PostMapping("/chapter/list")
    RecordChapterListResponseVO getRecordChapterList(@Validated RecordChapterListRequestVO reqVO);

}
